Patient Medical History Timeline#150
Merged
inteee merged 7 commits intoCIVRA-INC:mainfrom Mar 8, 2026
Merged
Conversation
inteee
reviewed
Mar 6, 2026
inteee
approved these changes
Mar 8, 2026
Contributor
inteee
left a comment
There was a problem hiding this comment.
I’ve reviewed the changes and they look good to me. The implementation is clean and aligns with the requirements. Approved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #117
implements the Patient Medical History view for LumenHealth EHR, enabling doctors to see a patient’s complete medical history in a single chronological, scrollable interface. A new backend endpoint
GET /api/v1/patients/:id/historyperforms a MongoDB aggregation that retrieves the patient, their encounters, and joins associated vitals, notes, and diagnoses via$lookup, returning results sorted from newest to oldest with proper indexing onpatientIdto keep response time under 300ms. On the frontend, the patient dashboard now includes a vertical timeline displaying encounters as expandable accordion cards, revealing nested vitals and notes for each visit. The view supports lazy loading and pagination, initially loading the latest five encounters and fetching additional records as the user scrolls. For parallel development, a complex mock JSON dataset representing three encounters with nested vitals and notes is included to allow frontend work to proceed independently of real backend data.